package com.zhejiangzhengyuan.municipal_common.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * @author :linju
 * @create on : 2020/1/2
 */
@Document(collection = "ROBIN_HWSERVICE_CONFIG")
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PumpEstimatedValue", description="泵站实时监控检测值")
public class PumpEstimatedValue implements Serializable {
    private static final long serialVersionUID = -1L;

    @Id
    private String id;

    @ApiModelProperty(value = "泵站的编号")
    @ExcelProperty(value = "终端编号")
    @Field(value = "STATION_KEY")
    private String stationKey;

    @ExcelProperty(value = "泵站名称")
    @ApiModelProperty(value = "泵站名称")
    private String pumpStation;

    @ApiModelProperty(value = "运行状态")
    private String status;

    @ExcelProperty(value = "液位/m")
    @ApiModelProperty(value = "检测值")
    @Field(value = "TAG_VALUE")
    private String value;


    @ExcelProperty(value = "电流/kA")
    @ApiModelProperty(value = "泵站里面的设备编号")
    @Field(value = "VARIABLE_NAME")
    private String variableName;

    @ApiModelProperty(value = "控制模式")
    private String control;

    @ApiModelProperty(value = "告警原因")
    private String reason;

    @ApiModelProperty(value = "泵站和设备的编号")
    @Field(value = "TAG_CODE")
    private String code;

    @ApiModelProperty(value = "水池液位类型")
    @Field(value = "TAG_DESC")
    private String desc;

    @ApiModelProperty(value = "水池液位")
    @Field(value = "TAG_NAME")
    private String name;

    @ApiModelProperty(value = "采集时间")
    @Field(value = "SAVE_DATE")
    private Date date;

    private String longitude;

    private String latitude;

}
